<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
	<script>
		$(function() {
			$("button").click(function() {
				$.ajax({
					type: "get",
					url: "http://10.8.166.15/AJAX/weibo",
					success: function(data) {
						var list =  $.parseJSON(data);	
						var $tab = $("<table>");
						$(document.body).append($tab);
						$(list).each(function(){
							var $tr = $("<tr>");
							for(var attr in this) {
								var $td = $("<td>");
								$td.html(this[attr]);
								$tr.append($td);
							}
							$tab.append($tr);
						});
					}
				});
			});
		});
	</script>

	<body>
		<button>AJAX请求</button>
	</body>

</html>